﻿using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities.Auditing;

namespace Hicap.AuthorizationServer.Core.Models
{
    public class UserRoleRelated : FullAuditedEntity
    {
        public bool IsActive { get; set; } = true;

        [ForeignKey("Role")]
        public int RoleId { get; set; }

        public virtual Role Role { get; set; }

        [ForeignKey("User")]
        public int UserId { get; set; }

        public virtual User User { get; set; }
    }
}